package com.example.demo.feign;

import org.springframework.cloud.netflix.feign.FeignClient;

import com.example.config.FeignConfiguration;
import com.example.demo.entity.User;

import feign.Param;
import feign.RequestLine;
@FeignClient(name = "microservice-provider-user",configuration = FeignConfiguration.class)
public interface UserFeignClient {
	
	
	@RequestLine("GET /getUser/{id}")
	public User getUserById(@Param("id") Long id); 
}
